package org.wevil.entity.cond;

import org.wevil.entity.pk.PKCondRoleOrg;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.Id;
import javax.persistence.IdClass;

@EntityListeners(AuditingEntityListener.class)
@Entity
@IdClass(PKCondRoleOrg.class)
@Getter
@Setter
public class CondRoleOrg {
    @Id
    private int roleId;
    @Id
    private int orgId;
}
